package cn.itsource.aigou.util;

/**
 * Created by Administrator on 2019/1/19 0019.
 */
//ajax 请求响应的类
public class AjaxResult {
  private  boolean success =true;
  private  String message="操作成功";

    public boolean isSuccess() {
        return success;
    }

    public AjaxResult setSuccess(boolean success) {
        this.success = success;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public AjaxResult setMessage(String message) {
        this.message = message;
        return this;
    }

     //成功
    public static AjaxResult me(){
       return  new AjaxResult();
    }
/*
    public AjaxResult() {
    }

    public AjaxResult(String message) {
        this.success=false;
        this.message = message;
    }*/
}
